
package net.atremmedia.gwt.actionjava.examples.tween.samples;

import net.atremmedia.gwt.actionjava.examples.AJExample;
import net.atremmedia.gwt.actionjava.examples.frame.AJExampleOverview;
import net.atremmedia.gwt.actionjava.examples.tween.samples.nodes.NodesMass;
import actionjava.events.tick.TickEvent;
import com.google.gwt.user.client.ui.RootPanel;

public class TweenExample6 extends AJExample
{
	public static final String NAME = "TweenExample 6";
	public static final String DESCRIPTION = "Description";
	public static final String EXAMPLE_SRC = "https://code.google.com/p/gwt-actionjava/source/browse/trunk/aj-examples/aj-examples-basics/src/main/java/net/atremmedia/gwt/actionjava/examples/tween/samples/TweenExample6.java";

	private NodesMass nodesMass;

	public TweenExample6(AJExampleOverview base)
	{
		super(NAME, DESCRIPTION, EXAMPLE_SRC, base);
	}

	@Override
	public void run()
	{
		RootPanel.get("ajTest").getElement().getStyle().setBackgroundColor("#000000");

		nodesMass = new NodesMass();
		addChild(nodesMass);
		nodesMass.start();
	}

	@Override
	public void onRenderTick(TickEvent event)
	{
		nodesMass.update();
	}
}
